package com.ruoyi.rgpp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rgpp.mapper.JmrypStudentsMapper;
import com.ruoyi.rgpp.domain.JmrypStudents;
import com.ruoyi.rgpp.service.IJmrypStudentsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 发布简历Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-06-15
 */
@Service
public class JmrypStudentsServiceImpl implements IJmrypStudentsService 
{
    @Autowired
    private JmrypStudentsMapper jmrypStudentsMapper;

    /**
     * 查询发布简历
     * 
     * @param card 发布简历主键
     * @return 发布简历
     */
    @Override
    public JmrypStudents selectJmrypStudentsByCard(String card)
    {
        return jmrypStudentsMapper.selectJmrypStudentsByCard(card);
    }

    /**
     * 查询发布简历列表
     * 
     * @param jmrypStudents 发布简历
     * @return 发布简历
     */
    @Override
    public List<JmrypStudents> selectJmrypStudentsList(JmrypStudents jmrypStudents)
    {
        return jmrypStudentsMapper.selectJmrypStudentsList(jmrypStudents);
    }

    /**
     * 新增发布简历
     * 
     * @param jmrypStudents 发布简历
     * @return 结果
     */
    @Override
    public int insertJmrypStudents(JmrypStudents jmrypStudents)
    {
        return jmrypStudentsMapper.insertJmrypStudents(jmrypStudents);
    }

    /**
     * 修改发布简历
     * 
     * @param jmrypStudents 发布简历
     * @return 结果
     */
    @Override
    public int updateJmrypStudents(JmrypStudents jmrypStudents)
    {
        return jmrypStudentsMapper.updateJmrypStudents(jmrypStudents);
    }

    /**
     * 批量删除发布简历
     * 
     * @param cards 需要删除的发布简历主键
     * @return 结果
     */
    @Override
    public int deleteJmrypStudentsByCards(String cards)
    {
        return jmrypStudentsMapper.deleteJmrypStudentsByCards(Convert.toStrArray(cards));
    }

    /**
     * 删除发布简历信息
     * 
     * @param card 发布简历主键
     * @return 结果
     */
    @Override
    public int deleteJmrypStudentsByCard(String card)
    {
        return jmrypStudentsMapper.deleteJmrypStudentsByCard(card);
    }
}
